import 'common/reset.css'
import 'common/normalize.css'
import 'common/variable.less'

import React from 'react'
import { BrowserRouter as Router, Switch, Route, Redirect } from 'react-router-dom'

import Detail from 'pages/Detail'
import List from 'pages/List'

import './style.less'

function App() {
  return (
    <div>
      <Router>
        <Switch>
          <Route exact component={List} path="/list" />
          <Route exact component={Detail} path="/detail/:status/:id?" />
          <Redirect to="/list" />
        </Switch>
      </Router>
    </div>
  )
}

export default App
